# Contributor: Zsolt M <zsolt@meszarovics.me>
# Maintainer:
pkgname=mhddfs
pkgver=0.1.39
pkgrel=0
pkgdesc="A fuse-based file system for unifying several mount points into one."
url="http://mhddfs.uvw.ru"
arch="" # fails to build
license="GPL-3.0"
depends="fuse"
depends_dev="fuse-dev attr-dev"
makedepends="$depends_dev"
_uthashver=1.9.9
source="http://mhddfs.uvw.ru/downloads/${pkgname}_${pkgver}.tar.gz
        uthash-v${_uthashver}.tar.gz::https://github.com/troydhanson/uthash/archive/v${_uthashver}.tar.gz
        local-uthash.patch"
builddir="$srcdir"/${pkgname}-${pkgver}

build() {
	cd "$builddir"
	srcdir=${srcdir} make
}

package() {
	cd "$builddir"
	install -Dsm755 mhddfs "$pkgdir"/usr/bin/${pkgname}
}

sha512sums="cf1952e665e82a92ccfef9215d4faf78cd235566b67e6ebc3a60ab53089d9391bc41a08e6b203ad052e4a08bdd14428f2d9abe48f341aeb0c80ae1da80f83f89  mhddfs_0.1.39.tar.gz
40b888529db6baba7bdb0a11c3f782719c40470f6b8e4d75ed480c4c465606e990abf65786156a93f4e2f9c8805cbc098550cc3c62e33b7345fa5bf6d146a8c4  uthash-v1.9.9.tar.gz
e288ab2efad8955e621460e46dc6ec7c14f6471498ec3df6900fad00bfbb91d3ba9cabed10f17257c6aa15f5be6558c75d4220e57b935beb1cef0893d7a9bbab  local-uthash.patch"
